package com.auth.project.cn.domain;

/**
 * @author Rocky
 * @version 1.0.0
 * @classname Constants
 * @description 系统通用常量
 * @date 2019-03-30 13:41
 * @email jintaozhao@qq.com
 */
public class Constants {
	/**
	 * UTF-8 字符集
	 */
	public static final String UTF8 = "UTF-8";

	/**
	 * 通用成功标识
	 */
	public static final String SUCCESS = "0";

	/**
	 * 通用失败标识
	 */
	public static final String FAIL = "1";

	/**
	 * 登录成功
	 */
	public static final String LOGIN_SUCCESS = "Success";

	/**
	 * 注销
	 */
	public static final String LOGOUT = "Logout";

	/**
	 * 登录失败
	 */
	public static final String LOGIN_FAIL = "Error";

	/**
	 * 自动去除表前缀
	 */
	public static String AUTO_REOMVE_PRE = "true";

	/**
	 * 当前记录起始索引
	 */
	public static String PAGE_NUM = "pageNo";

	/**
	 * 每页显示记录数
	 */
	public static String PAGE_SIZE = "pageSize";

	/**
	 * 排序列
	 */
	public static String ORDER_BY_COLUMN = "orderByColumn";

	/**
	 * 排序的方向 "desc" 或者 "asc".
	 */
	public static String IS_ASC = "isAsc";

	/**
	 * 云存储配置KEY
	 */
	public final static String CLOUD_STORAGE_CONFIG_KEY = "CLOUD_STORAGE_CONFIG_KEY";
	/**
	 * 短信配置KEY
	 */
	public final static String SMS_CONFIG_KEY = "SMS_CONFIG_KEY";

    /**
     * token
     */
    public static final String TOKEN            = "token";

	/**
	 * 当前用户
	 */
	public final static String CURRENT_USER = "current_user";

	/**
	 * 默认随机代码
	 */
	public static final String DEFAULT_CODE_KEY = "random_code_";

	/**
	 * ACCESS_TOKEN
	 */
	public final static String ACCESS_TOKEN     = "access_token:";


	public final static String ACCESS_TOKEN_RELEVANCE     = "access_token:relevance:";

	/**
	 * ACCESS_USERID
	 */
	public final static String ACCESS_USERID    = "access_userid:";

	public static final String RESOURCE_PREFIX  = "/profile";

	public final static String YES_CHINESE    = "是";

	public static final String NO_CHINESE  = "否";

	public static final String COST_EXPORT_REDIS_KEY  = "costExport";
	public static final String QC_COST_EXPORT_REDIS_KEY  = "qc_costExport";
	public static final String CONTRACT_EXPORT_REDIS_KEY  = "contractExport";

	public static final String CONTRACT_SCHEDULE_EXPORT_REDIS_KEY = "contractSchedule";
	public static final String OPENAPI_REPEAT_REQUEST_CHECKOUT = "OPENAPI_REPEAT_REQUEST_CHECKOUT_";

	public static final String QL_PIONEER_KEY = "qlPioneer";

	public static  final String MEET_INVITE_KEY = "meetInvite";

	public static final String DEFAULT_TENANT_ID = "000000";
}
